# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test03
# Description: 例17.3
# Author:       ASUS
# Date:         2019/5/11
#-------------------------------------------------------------------------------


import random
from time import sleep
import _thread as thread
def fun(a,b):
    print(a,b)
    sleep(random.randint(1,5))
for i in range(8):
    thread.start_new_thread(fun,(i+1,'a'*(i+1)))
input()



